package com.hjb.service.impl.coupon;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hjb.service.coupon.CouponInfoService;
import com.hjb.service.domain.couponinfo.CouponInfo;
import com.hjb.service.domain.couponinfo.CouponInfoExample;
import com.hjb.service.mapper.CouponInfoMapper;

@Service
public class CouponInfoServiceImpl implements CouponInfoService {

	private Logger log = LoggerFactory.getLogger(CouponInfoServiceImpl.class);
	
	@Autowired
	private CouponInfoMapper couponInfoMapper;

	@Override
	public List<CouponInfo> selectByExample(CouponInfoExample example) {
		return couponInfoMapper.selectByExample(example);
	}

	@Override
	public int insertCouponInfo(CouponInfo couponInfo) {
		return couponInfoMapper.insertSelective(couponInfo);
	}

	@Override
	public void updateCouponInfo(CouponInfo couponInfo) {
		couponInfoMapper.updateByPrimaryKeySelective(couponInfo);
	}
	
}
